package com.example.dynamicdatasource.mapper;

import com.example.dynamicdatasource.entities.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author mqb
 * @date 2021/8/9 20:15
 */
public interface DemoMapper {
    @Select("select * from teacher where id = #{id}")
    Teacher selectOne(@Param("id") Long id);
}
